<div class="gridContainer autoCenter">
	<!-- GRID HEADER -->
	<div class="gridHeader block">
		<table class="fullWidth">
			<tr>
				<td class="column50">
					<h3 class="moduleHeader">
						Chapters References
					</h3>
				</td>
				<td class="column50 rightAlign">
					<button type="button" onclick="window.location='<?php echo site_url("admin/catalog/chapter/edit", true)?>'">
						<span>Add New Chapter</span>
					</button>
				</td>
			</tr>
		</table>
	</div>
	<!--TOOL-->
	<table class="gridview" id="gridview">
		<thead>
		<!--COLUMN HEADER-->
		<tr class="columns">
			<th id="chapter_id" class="columnFilter"><span>ID</span></th>
			<th id="chapter_id" class="columnFilter" style="width:110px"><span>Number</span></th>
			<th id="chapter_name" class="columnFilter"><span>Chapter</span></th>
			<th><span>Action</span></th>
		</tr>
		<!--COLUMN FILTER-->
		<tr class="filters">
			<th></th>
			<th></th>
			<th></th>
			<th></th>
		</tr>
		</thead>
		<tbody>
			<?php foreach ($chapterCollection as $chapter) :?>
			<tr id="row_<?php echo $chapter->getId()?>" class="activeRow">
				<input class="editUrl" type="hidden" value="<?php echo $chapter->getChapterUrl(); ?>" />
				<td><?php echo $chapter->getId() ?></td>
				<td><?php echo $chapter->getNumber() ?></td>
				<td><?php echo $chapter->getChapter() ?></td>
				<td>
					<a href="<?php echo $chapter->getChapterUrl() ?>">Edit</a>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
</div>
